<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Flash Communication Test</title>
<!--
unFocus.Tests (2007/09/11)
Copyright: 2007, Kevin Newman (http://www.unfocus.com/Projects/)

This file is part of unFocus.History Keeper.

unFocus.History Keeper is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

unFocus.History Keeper is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this program.  If not, see <http://www.gnu.org/licenses/>.
-->
<script type="text/javascript" src="../javascript/unFocus/Utilities/JSFixes.js"></script>
<script type="text/javascript" src="../javascript/unFocus/Utilities/EventManager.js"></script>
<script type="text/javascript" src="../javascript/unFocus/SwfTools/Utilities.js"></script>
<script type="text/javascript" src="../javascript/unFocus/SwfTools/Communicator.js"></script>
<!--[if IE]>
<style type="text/css" id="ObjectPatentMagic">object{display:none}</style>
<script type="text/javascript" src="../../PatentMagic/ObjectPatentMagic.js" defer="defer"></script>
<![endif]-->
</head>

<body onLoad="alert('loaded');">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" name="foofoo" width="550" height="400" id="foofoo">
  <param name="movie" value="/projects/source/tests/FlashCommunication.swf">
  <param name="quality" value="high">
  <embed src="/projects/source/tests/FlashCommunication.swf" width="550" height="400" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="foofoo"></embed>
</object>
<script type="text/javascript">
// import classes from unFocus.SwfTools namespace (in style only of course)
with (unFocus.SwfTools) {
	var testComm = new Communicator("foofoo", '../JavaScript/unFocus/Flash/Communicator.swf');
	testComm.DoFSCommand = function (cmd, args) {
		if (cmd === "alert")
			alert(args);
	};
}
</script>
</body>
</html>
